import React, { Component } from 'react';
import { Provider } from 'mobx-react';
import 'animate.css';
import 'taro-ui/dist/style/index.scss';
import stores from './store';
import './app.less';

class App extends Component {
  componentWillMount() {
    console.log('willmount----');
  }

  componentDidMount() {
    console.log('mount------');
  }

  componentDidShow() {
    console.log('show------');
  }

  componentDidHide() {
    console.log('hide------');
  }

  componentDidCatchError() {
    console.log('error------');
  }

  render() {
    return (
        <Provider {...stores}> {this.props.children} </Provider>
    );
  }
}

export default App;